#ifndef TRACKCATCHER_H
#define TRACKCATCHER_H

#include "ui/LaserFinder.h"
#include "model/Track.h"

class TrackCatcher {
private:
	LaserFinder* lf;
	bool finished;
	unsigned empty_count;
	Track next_track;
	bool has_next;
	unsigned empty_count_treshold;
public:
	TrackCatcher(LaserFinder* lf);
	TrackCatcher(LaserFinder* lf, unsigned emptyCountTreshold);
	bool next(Track& t);
	bool hasNext();
};

#endif
